#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask_restful import Resource
from flask         import redirect,request,make_response

from e4ting.util   import Hardware

class WebDataDetail(Resource):
    ''' 首页数据 '''
    #----------------------------------------------------------------------
    def __init__(self):
        super(WebDataDetail, self).__init__()

    def get(self, id=0):

        return {
            "resultCode": 200,
            "message": "SUCCESS",
            "data": {
                "goodsId": id,
                "goodsName": "【旗舰新品】HUAWEI/华为Mate50 Pro 昆仑破晓 512G",
                "goodsIntro": "曲面屏超光变XMAGE影像鸿蒙3.0拍照摄影游戏新款智能手机",
                "goodsCoverImg": "https://img.e4ting.cn/files/upload/cb658a580cb575412e66a8b78816bd8d/chrome.svg",
                "sellingPrice": 7899,
                "tag": "领势而上",
                "goodsCarouselList": [
                    "https://img.e4ting.cn/files/upload/7c086f6854a5141714dbe55f457fd178/curl.jpg"
                ],
                "originalPrice": 7999,
                "goodsDetailContent": "<p><img src=\"https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mate-50-pro-1.jpg\" style=\"max-width:100%;\" contenteditable=\"false\"/><img src=\"https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mate-50-pro-2.jpg\" style=\"max-width:100%;\" contenteditable=\"false\"/><img src=\"https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mate-50-pro-3.jpg\" style=\"max-width:100%;\" contenteditable=\"false\"/></p>"
            }
        }